<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>mall-c-test</title>
<script
	src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<style type="text/css">
	.urlBtn{
		height:8em;
		background-color: gray;
		color: white;
	}
</style>
<script type="text/javascript">
	$(function() {
		$(document).on("click", ".urlBtn", function() {
			var link = $(this).attr("link")
			if(link){
				$.get(link, function (data) {
					alert(data)
				}).error(function(xhr,errorText,errorType){
					alert(xhr.status+','+xhr.responseText);
				});;
			}
		})
	})
</script>
</head>
<body>
	<div align="center" style="width: 500px;margin: 0 auto;margin-top: 200px;">
		<button class="urlBtn" link="/mall/a/api/test?token=124">测试mall-a服务接口</button>
		<button class="urlBtn" link="/mall/b/api/test?token=124">测试mall-b服务接口</button>
		<button class="urlBtn" link="/mall/b/api/call/mall/a/user?token=124">测试mall-b服务调用mall-a服务接口</button>
	</div>
</body>
</html>